#include "Logger.h"

Logger::Logger(QTextEdit* edit, QObject* parent) :
	QObject(parent),
	_textEdit(edit)
{
	_mutex = new QMutex();
}

void Logger::writeLine(QString data){
	_mutex->lock();
	_textEdit->append(data);
	_mutex->unlock();
}
